/**
 * Created by AllanXu on 01/03/2016.
 */
define(function (require) {
	var Vue = require('vue'),
        Config = require('config'),
		_ = require('ajax'),
		utilities = require('utilities');

	var id = utilities.getParameterByName('id');

	var app = new Vue({
		el: '#activity_business_detail',
		data: {
		    mainInfo: ''
		},
		methods:{
			init: function () {
                _(Config.SERVICE.INDEX.ACTIVITYBUSINESSDETAIL, {
                	"id": id
                }, function(data) {
                    console.log(data);
					app.mainInfo = data.obj;
                });
			}
		}
	});
	app.init();
});
